<?php 
/**
*	文件下载相关接口
*/
class kjhfClassAction extends apiAction
{
	
	/**
	*	获取文件信息
	*/
	public function kjhfAction()
	{
		
		$rows 	= $this->db->getall("select content from xinhu_kjhf where optid=$this->adminid"); 
		
		$this->showreturn($rows);
	}
	
	/**
	*	下载文件
	*/
	public function downAction()
	{
		$id  = (int)$this->jm->gettoken('id');
		m('file')->download($id);
	}
}